<h1>Listing terms</h1>

<table>
  <tr>
    <th>Start date</th>
    <th>End date</th>
    <th>Name</th>
  </tr>

<% @terms.each do |term| %>
  <tr>
    <td><%=h term.start_date %></td>
    <td><%=h term.end_date %></td>
    <td><%=h term.name %></td>
    <td><%= link_to 'Show', term %></td>
    <td><%= link_to 'Edit', edit_term_path(term) %></td>
    <td><%= link_to 'Destroy', term, :confirm => 'Are you sure?', :method => :delete %></td>
    <td><%= link_to 'Sync', term_path(term)+'/sync' %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New term', new_term_path %>